package org.example;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//seata需要接手数据源  排除自动配置
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class})
@EnableDiscoveryClient
@EnableFeignClients("org.example.ymcc.feignclient")
public class UserServer {
    public static void main(String[] args) {
        SpringApplication.run(UserServer.class);
    }
}